Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFields D

Total Complexity 182
Dependencies 9
Dependents 16
Total lines 1,505
Lines of code 825
Logical lines of code 372
Comment lines 514
Methods 52
Properties 5

Methods 52

Method Rating Maintainability Complexity Lines of code
validate_options()
B
36 22 79
process_select_field()
A
48 8 34
get_core_fields()
A
33 1 137
get_all_fields_from_object()
A
51 8 24
register_field_attributes()
A
47 7 36
validate_field()
S
49 7 29
get_validate_callback()
S
54 7 21
get_order_additional_fields_with_values()
S
54 6 21
process_checkbox_field()
S
55 6 19
is_required_field()
S
58 6 17
get_field_from_object()
S
57 6 15
add_session_meta_keys()
S
53 4 23
format_additional_field_value()
S
62 5 10
register_checkout_field()
S
50 3 29
get_group_name()
S
60 4 13
get_group_key()
S
61 4 13
get_field_location()
S
63 4 11
update_default_locale_with_fields()
S
63 4 11
validate_field_for_location()
S
55 3 23
sanitize_field()
S
55 3 20
sync_customer_additional_fields_with_order()
S
63 4 10
sync_order_additional_fields_with_customer()
S
63 4 10
is_hidden_field()
S
64 4 9
get_contextual_fields_for_location()
S
60 3 13
default_validate_callback()
S
63 3 11
deregister_checkout_field()
S
63 3 11
validate_fields_for_location()
S
55 2 20
process_field_options()
S
66 3 8
persist_field_for_order()
S
66 3 8
get_fields_for_group()
S
64 3 10
set_array_meta()
S
65 3 8
is_valid_field()
S
67 3 7
is_conditional_field()
S
69 3 6
get_fields_for_location()
S
60 2 14
prepare_group_name()
S
70 2 6
get_core_fields_keys()
S
61 1 15
contains_valid_rules()
S
78 2 3
prepare_location_name()
S
72 2 6
filter_fields_for_location()
S
65 1 10
filter_fields_for_order_confirmation()
S
68 1 8
__construct()
S
66 1 8
persist_field_for_customer()
S
75 1 4
is_customer_field()
S
77 1 3
is_field()
S
79 1 3
get_order_fields_keys()
S
80 1 3
get_additional_fields_keys()
S
75 1 4
get_contact_fields_keys()
S
80 1 3
init()
S
70 1 6
get_additional_fields()
S
82 1 3
default_sanitize_callback()
S
82 1 3
add_fields_data()
S
75 1 4
get_address_fields_keys()
S
80 1 3